<?php

include '../../../configuration.php';

$ids = $_POST['check_g'];

for ($i = 0; $i < count($ids); $i++) {
	mysql_query("DELETE FROM `groups` WHERE group_id = $ids[$i]");
}
header("Location: modify_or_delete_group.php");

?>